package com.spl.mcm.models;

import java.text.SimpleDateFormat;
import java.util.Locale;

import android.graphics.Bitmap;
import android.text.format.Time;

import com.spl.mcm.views.ListItem;

public class HistoryItem implements ListItem{
	protected long id;
	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(long id) {
		this.id = id;
	}
	protected String content;
	protected String number;
	protected String name;
	protected Time time;
	/**
	 * @return the content
	 */
	public String getContent() {
		return content;
	}
	/**
	 * @param content the content to set
	 */
	public void setContent(String content) {
		this.content = content;
	}
	/**
	 * @return the number
	 */
	public String getNumber() {
		return number;
	}
	/**
	 * @param number the number to set
	 */
	public void setNumber(String number) {
		this.number = number;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the time
	 */
	public Time getTime() {
		return time;
	}
	/**
	 * @param time the time to set
	 */
	public void setTime(Time time) {
		this.time = time;
	}
	@Override
	public String getTitle() {
		return this.getContent();
	}
	@Override
	public String getSubTitle() {
		return this.getName();
	}
	@Override
	public String getAdditionInfor() {
		
		String data="" + this.getTime().year + "/" + this.getTime().month + "/" + this.getTime().monthDay + " " + this.getTime().hour + ":" + this.getTime().minute + ":" + this.getTime().second;
		System.out.println(data);
		return (data);
	}
	@Override
	public Bitmap getImage() {
		return null;
	}
}
